package com.api.miaosha;

import com.fengmi.miaosha.entity.MsGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("fengmi-miaosha")
@RequestMapping("/miaosha/goods")
public interface MiaoShaApi {


    @RequestMapping("findGoodsListByTimeFromDB")
    public List<MsGoods> findGoodsListByTimeFromDB(@RequestParam("startTime") String startTime,
                                                   @RequestParam("endTime") String endTime);
}
